package com.onepice.mlp.data.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.*;
import java.util.Date;

/**
 * @author FireWang
 * @date 2024/11/11 22:50:13
 */
@Entity
@Table(name = "tagdata")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode
@ToString
@EntityListeners(AuditingEntityListener.class)
public class Tagdata {
    
        @Id
        @GeneratedValue(strategy = GenerationType.IDENTITY)
        @Basic
        private Integer id;
    
        @Basic
        private String projectName;
    
        @Basic
        private String projectNumber;
    
        @Basic
        private String testOrganize;
    
        @Basic
        @CreatedDate
        @Temporal(TemporalType.TIMESTAMP)
        @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy/MM/dd")
        private Date testTime;
    
        @Basic
        private String envType;
    
        @Basic
        private String testPointName;
    
        @Basic
        private String testPointLng;
    
        @Basic
        private String testPointLat;
    
        @Basic
        private String testItem;
    
        @Basic
        private String testValue;
    
        @Basic
        private String dailyValue;
    
        @Basic
        private String protectLevel;
    
        @Basic
        private String status;
    
        @Basic
        private String overTimes;
    
        @Basic
        @CreatedDate
        @Temporal(TemporalType.TIMESTAMP)
        private Date createTime;
    
        @Basic
        @CreatedDate
        @Temporal(TemporalType.TIMESTAMP)
        private Date modifyTime;

        @Basic
        private Integer tagType;

        @Basic
        private String remark;
}
